﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="ThisChannel" Object="Channel" InnerID="Request.QueryString['ChannelID']" />
<section data-page="channel_menu_list" data-title="栏目菜单">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="../list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">栏目列表</a> → <b class="<%=ContentLang%>Font"><%=ThisChannel[Name]%></b></dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<div class="ali-tabs" data-height-style="fill" data-event="click">
		<div class="ali-tabs-header">
			<div class="ali-tabs-nav-container">
				<ul>
					<li><a href="../edit.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ChannelID"]%>" target="ali-navtab">编辑</a></li>
					<li><a href="../change_template.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ChannelID"]%>" target="ali-navtab">更改模板</a></li>
					<li><a href="../extra_instance.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ChannelID"]%>" target="ali-navtab">栏目邦定</a></li>
					<li class="ali-active"><a>栏目菜单</a></li>
					<li><a href="add.aspx?Lang=<%=ContentLang%>&amp;ChannelID=<%=Request.QueryString["ChannelID"]%>" target="ali-navtab">添加菜单</a></li>
				</ul>				
			</div>
		</div>
		<div class="ali-tabs-body">
			<div class="ali-tabs-panel"></div>
			<div class="ali-tabs-panel"></div>
			<div class="ali-tabs-panel"></div>
			<div class="ali-tabs-panel">
				<table data-ali-widget="grid" class="grid1" data-tree="true" data-root="0">
					<thead>
						<tr>
							<th width="80">移动</th>
							<th>名称及层次</th>
							<th width="80">删除</th>
						</tr>
					</thead>
					<tbody>
						<ali:Tree Object="Channel.Menu"  Condition="ChannelID=ThisChannel[ID]" Validate="True">
							<ali:Record>
								<tr data-id="<%=InnerID%>">
									<td data-sort="<%=InnerID%>" data-name="<%=Name%>"><%=InnerID%></td>
									<th data-item="<%=ParentChain%>.<%=InnerID%>" data-parent="<%=ParentChain%>" class="<%=ContentLang%>Font"><a href="edit.aspx?Lang=<%=ContentLang%>&amp;ChannelID=<%=Request.QueryString["ChannelID"]%>&amp;ID=<%=InnerID%>" target="ali-navtab"><%=Name%></a></th>
									<td><a class="ali-button" data-operation="Delete">删除</a></td>
								</tr>
								<%=ChildRecords%>
							</ali:Record>
						</ali:Tree>
					</tbody>
				</table>
			</div>
		</div>
		<div class="ali-tabs-bottom"><b></b></div>
	</div>
</section>